var shareBtn = document.querySelector(".share_btn");
shareBtn.addEventListener("touchstart",function(){
	alert("您能别乱点吗?");
},false);
//点击图片 播放视频
var videoZhebu = document.getElementsByClassName("video_zhebu")[0];
var tab_one_video = document.getElementsByClassName("tab_one_video")[0];
videoZhebu.addEventListener("touchstart",function(){
	tab_one_video.play();
	this.style.display = "none";
},false);
//tab切换视频和图片
$(".liangdian").on("touchstart",function(){
	$(".video_zhebu").css("display","none");
	$(".tab_one_video").css("display","none");
	$(".focus_box").css("display","block");
	$(this).attr("src","img/page1_btn_pic_active.png");
	$(".video_tab").attr("src","img/page1_btn_video.png");
});
$(".video_tab").on("touchstart",function(){
	$(".focus_box").css("display","none");
	$(".video_zhebu").css("display","block");
	$(".tab_one_video").css("display","block");
	$(this).attr("src","img/page1_btn_video_active.png");
	$(".liangdian").attr("src","img/page1_btn_pic.png");
});
//点击活动说明 弹框阿
$(".fl").eq(1).on("touchstart",function(){
	$("#bomBox").css("display","block");
});
//弹框关闭
$(".close").on("touchstart",function(){
	$("#bomBox").css("display","none");
});
//滚动条
var slider = document.querySelector('.slider');
var sliderMod = document.querySelector('.slider_mod');
var content = document.querySelector("#content");
var p1 = document.querySelector("#p1");
slider.addEventListener("touchstart",start,false);
slider.addEventListener("touchmove",moveFun,false);		
function start(event){
	heightMax = sliderMod.clientHeight - slider.offsetHeight;
	var ev = event || window.event;
	disY = ev.touches[0].clientY - slider.offsetTop;
}
function moveFun(event){
		var ev = event || window.event;
		ev.preventDefault();
		y = ev.touches[0].clientY - disY;
			if (y <= 0) {
					y = 0;
			}
			if (y >= heightMax) {
					y = heightMax;
			}
				slider.style.top = y + "px";
				p1.style.top = -y + "px";
}				
//获取试试手气
var btnNext = document.querySelector(".btn_next");
var shouqi = document.querySelector("#shouqi");
var quit = document.querySelector(".quit");
btnNext.addEventListener("touchstart",function(){
	shouqi.style.display = "block";
},false);
quit.addEventListener("touchstart",function(){
	shouqi.style.display = "none";
},false);


//中奖名单
$(".zhongjiangmingdan").on("touchstart",function(){
	$("#zhebu").show();
	$("#win").slideDown(500);
});
$(".quit1").on("touchstart",function(){
	$("#zhebu").hide();
	$("#win").hide();
});















